package com.example.curriculum.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.persistence.*;

@Table(name = "Business")
@Entity
public class Business {
    @Id
    @Column(name = "BizId")
    @JsonProperty("biz_id")
    private String biz_id; // 业务号
    @Column(name = "UserId")
    @JsonProperty("user_id")
    private String user_id; // 用户id
    @Column(name = "OrderId")
    @JsonProperty("order_id")
    private String order_id; // 订单号
    @Column(name = "BillId")
    @JsonProperty("bill_id")
    private String bill_id; // 提单号
    @Column(name = "Fee")
    @JsonProperty("fee")
    private Double fee; // 仓储费
    @Column(name = "StorageTon")
    @JsonProperty("storage_ton")
    private Double storage_ton; // 剩余吨量

    public Business() {
    }

    public Business(String biz_id, String user_id, String order_id, Double fee, Double storage_ton) {
        this.biz_id = biz_id;
        this.user_id = user_id;
        this.order_id = order_id;
        this.bill_id = bill_id;
        this.fee = fee;
        this.storage_ton = storage_ton;
    }

    public String getBiz_id() {
        return biz_id;
    }

    public void setBiz_id(String biz_id) {
        this.biz_id = biz_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getBill_id() {
        return bill_id;
    }

    public void setBill_id(String bill_id) {
        this.bill_id = bill_id;
    }

    public Double getFee() {
        return fee;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    public Double getStorage_ton() {
        return storage_ton;
    }

    public void setStorage_ton(Double storage_ton) {
        this.storage_ton = storage_ton;
    }
}
